from django.urls import re_path
from rest_framework.urlpatterns import format_suffix_patterns

from .apps import CurrentAppConfig
from .views import *


app_name = CurrentAppConfig.name


urlpatterns = format_suffix_patterns([
    re_path(r'^order_list/$', ProductSalesOrderListView.as_view(), name='order_list'),
    re_path(r'^order_create/$', OrderCreateView.as_view(), name='order_create'),
    re_path(r'^order_delete/$', OrderDeleteView.as_view(), name='order_delete'),
    re_path(r'^order_complete/$', OrderCompleteView.as_view(), name='order_complete'),
    re_path(r'^order_state/$', OrderStateView.as_view(), name='order_state'),
    ])
